-
Notifications
You must be signed in to change notification settings - Fork 75
Fixed a recursive inling bug, added a test for it #666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Here are some nitpicks.
f217230
to
b6eb7c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nitpicks about formatting and spelling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few trailing ;
to remove.
I believe I can merge this after this is fixed.
Thanks for your contribution! |
Fixes #599.
Instead of always translating
#[inline(always)]
(which is a hint) toFnAttribute::AlwaysInline
(which makes inlining mandatory), we now do so only for functions which don't call any functions with the#[inline(always)]
or the rustc force inline attribute.In cases where
#[inline(always)]
is applied to a function which might be recursive, it is demoted to#[inline]
instead.This breaks the cycle, and prevents libjitgcc errors.
The regression test checks for direct and indirect recursion.